<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

    <style>
        .content {
            width: 300px;

        }
        .outwrap {
            white-space: nowrap;

        }
        .wrap {
            border: 1px solid #f40;
            width: 100%;
            overflow: auto;
        }
        table {
            border-collapse: collapse;
            tr {
                border: 1px solid lightblue;
                
            }
            tr th,td {
                 padding: 5px 20px;
            }
        }
     </style>
</head>
<body>

    <div class="content">
    <div class="outwrap">
        <div class="wrap">

            <table>
              <thead>
                  <tr>
                      <th>你好</th>
                      <th>你好999</th>
                      <th>你好000</th>
                  </tr>
              </thead>
              <tbody>
                  <tr>
                      <td>标题1</td>
                      <td>标题1</td>
                      <td>标题1</td>
                  </tr>
                  <tr>
                      <td>标题1</td>
                      <td>标题1</td>
                      <td>标题1</td>
                  </tr>
              </tbody>
            </table>
      
          </div>
    </div>
</div>
</body>
</html>